var express = require('express');
var app = express();

app.use('/', express.static(__dirname  + '/dist'));
app.get('/*', function(req, res){
    res.sendFile(__dirname + '/dist/index.html');
});

var server = app.listen(process.env.PORT || 4200, function () {
  var host = server.address().address;
  var port = server.address().port;
  console.log('App listening at http://%s:%s', host, port);
})
